
{%include file="header.html" %}  

<div class="break"></div>

<div class="warp manage_page">

{%include file="user/user_manage_menu.html" menu='weibo_manage' menu_detail='user_rt_view' %} 


<div class="manage_body">
<form id="form1">
<div class="manage_body_content ">


	<div class="sec-title">
		
	<h3>管理sina微博转发</h3>
	</div>

	<div style="margin:10px;height:20px">
	
		
	</div>


	<div style="margin:10px;">
		<br>
	添加了一个你自己的微博地址，就可以监控转发情况
		<input type=button value="新建微博" style="display:block;float:right;" onclick="location.href='user_add_rt_weibo.php';" />
	</div>
	
	
	<div style="margin:10px;">
	
	</div>
	
	<div class="w10">
	<table class="table-list">
		<tr>
		<th> 微博地址：</th>
		<th> 微博实际转发数（有缓存）</th>
		<th> 已经抓取转发数</th>
		<th> 操作</th>
	   </tr>

		{%section name=count loop=$g_show.list%}
		<tr id="list_tr_{%$g_show.list[count].id%}">
		<td> <a href="{%$g_show.list[count].link%}" target="_blank">{%$g_show.list[count].link%}</a></td>
		<td> {%$g_show.list[count].mblog_rt_count%}</td>
		<td>  {%$g_show.list[count].realrt_count%}</td>
		
		

		<td>
			<a href="user_rt_top.php?mid={%$g_show.list[count].mid%}"> 查看转发排行</a>
			 <a href="javascript:void(0);" onclick=del_one({%$g_show.list[count].id%});>删除</a></td>
	   </tr>
		{%/section%}
	</table>
	</div>
	<div style="margin:10px;">
		
		<div style="display:inline;">
			{%$g_show.page_bar%}
		</div>
	</div>


</div>
</form>
<div class="break"></div>




<script src ="/js/common/user_message.js"></script>
<script type="text/javascript" language="javascript">

YOUXIXIU.MAIN.CheckMessage.init();


function del_one(id)
{
	if(!id)
	{
		alert("没选择？！");
		return false;
	}

	$.post('/interface/user/json_mblog_user_rt_edit.php?type=del&id='+id, '', function(data){
		if (data.error == 1)
		{
			alert(data.errmsg);
		}
		else
		{
			$("#list_tr_"+id).hide();
			//alert("操作成功。");
			//window.location.reload();
		}
	}, 'json');
}

</script>



</div>
</div>


{%include file="footer.html" %}  
